/*
 * MonsterResource.h
 *
 *  Created on: 2014. 2. 14.
 *      Author: mega
 */

#ifndef MONSTERRESOURCE_H_
#define MONSTERRESOURCE_H_

#include <map>

namespace ProjectZ { namespace NResource {

class MonsterResource
{
public:
	struct Flyweight
	{
		int _DUNGEON_ID;
		int _HP_CONST;
		int _NORMAL_ATT_CONST;
		int _HARD_ATT_CONST;
		int _HELL_ATT_CONST;
		int _LEGEND_HP_CONST;
		int _LEGEND_ATT_CONST;
		int _BOSS_HP_CONST;
		int _BOSS_ATT_CONST;
	};
public:
	MonsterResource();
	virtual ~MonsterResource();

	bool		LoadResource();
	Flyweight *	GetFly(int dungeonid);

private:
	void	Clear();

public:
	typedef std::map<int, Flyweight *>	MONSTERCONSTTREE;

private:
	MONSTERCONSTTREE	clsFlyTree;
};

} /*NResource*/ } /*ProjectZ*/


#endif /* MONSTERRESOURCE_H_ */
